package javaseof10day.day5.am;

import java.util.List;

public class UserActionDemo {

	public static void main(String[] args) {

	//对象数组

		
		UserAction userAction =new UserAction();
		
		
		Users user1 =new Users(1, "user1", "admin");
		Users user2 =new Users(2, "user2", "admin");
		Users user3 =new Users(3, "user3", "admin");
		Users user4 =new Users(4, "user4", "admin");
		Users user5 =new Users(5, "user5", "admin");
		
		userAction.add(user1);
		userAction.add(user2);
		userAction.add(user3);
		userAction.add(user4);
		userAction.add(user5);
		
	List<Users> reslist1 = userAction.selectAll();
		System.out.println(reslist1);
		userAction.delete(2);

		
	List<Users> reslist2 = userAction.selectAll();
		System.out.println(reslist2);
		
		
		
	}

}
